<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script src="bower_components/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <h1>vue demo</h1>
            <p v-text="message">这是提示信息</p>
            <input type="text" v-model="desc">
            <button type="button" @click="hello">演示</button>
        </div>
    </body>
    <script>
        let app = new Vue({
            el: '#app',
            data:{
                message: 'hello vue!',
                desc: "2025-4-18"
            },
            methods:{
                hello:function(){
                    console.log(this.desc);
                    this.message = this.desc;
                }
            }
        })
    </script>
</html>